package com.elong.qadev.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

@Entity
@Table(name = "HTTP_RUNBEFORE", schema = "ti")
public class RunBefore {
	private int id;
	private int caseId;
	private String classPath;
	private String beforeMethod;
	private String beforeMethodArgs;

	public RunBefore(int id, int caseId, String classPath, String beforeMethod,
			String beforeMethodArgs) {
		super();
		this.id = id;
		this.caseId = caseId;
		this.classPath = classPath;
		this.beforeMethod = beforeMethod;
		this.beforeMethodArgs = beforeMethodArgs;
	}

	public RunBefore() {
		super();
		// TODO Auto-generated constructor stub
	}
	@Id
	@GeneratedValue(strategy=GenerationType.IDENTITY)
    @Column(name = "ID", unique = true, nullable = false, length = 10)
	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}
	@Column(name = "CASEID", nullable = false, length = 50)
	public int getCaseId() {
		return caseId;
	}

	public void setCaseId(int caseId) {
		this.caseId = caseId;
	}
	@Column(name = "CLASSPATH", nullable = true, length = 100)
	public String getClassPath() {
		return classPath;
	}

	public void setClassPath(String classPath) {
		this.classPath = classPath;
	}
	@Column(name = "BEFOREMETHOD", nullable = true, length = 100)
	public String getBeforeMethod() {
		return beforeMethod;
	}

	public void setBeforeMethod(String beforeMethod) {
		this.beforeMethod = beforeMethod;
	}
	@Column(name = "BEFOREMETHODARGS", nullable = true, length = 100)
	public String getBeforeMethodArgs() {
		return beforeMethodArgs;
	}

	public void setBeforeMethodArgs(String beforeMethodArgs) {
		this.beforeMethodArgs = beforeMethodArgs;
	}

	@Override
	public String toString() {
		return "RunBefore [id=" + id + ", caseId=" + caseId + ", classPath="
				+ classPath + ", beforeMethod=" + beforeMethod
				+ ", beforeMethodArgs=" + beforeMethodArgs + "]";
	}

}
